<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>等高布局的第二种解决方案</title>
  <style>
    #parent {
      overflow: hidden;
    }

    #left,
    #right {
      width: 300px;

      float: left;

      padding-bottom: 9999px;
      margin-bottom: -9999px;
    }

    #left {
      background-color: #c9394a;
    }

    #right {
      background-color: #cccccc;
    }
  </style>
</head>

<body>
  <div id="parent">
    <div id="left">imooc</div>
    <div id="right">Lorem, ipsum dolor sit amet consectetur adipisicing elit. Suscipit amet eaque assumenda neque
      repudiandae ad ratione nulla quae quod soluta, debitis tempore aliquid recusandae cupiditate, in maiores
      distinctio obcaecati a?</div>
  </div>
</body>

</html>